//
//  RecommdCollectionCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/12.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "RecommdCollectionCell.h"

@interface RecommdCollectionCell ()
@property (weak, nonatomic) IBOutlet UIImageView *topImageView;

@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *goodsPriceLabel;

@end

@implementation RecommdCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    self.goodsPriceLabel.font = MYFONT(15);
    
    self.goodsNameLabel.font = MYFONT(13);
    
    self.goodsPriceLabel.textColor = [UIColor redColor];
    // Initialization code
}


- (void)setModel:(MarketHSubModel *)model{
    _model = model;
    
    [self.topImageView sd_setImageWithURL:[NSURL URLWithString:_model.pic_cover_small] placeholderImage:nil];
    
    self.goodsNameLabel.text = _model.goods_name;
    
    self.goodsPriceLabel.text = _model.price;
    
}

@end
